@extends('app')

@section('content')
<ul class="nav nav-tabs">
    <li class="active"><a href="{{ url('/admin/enterprise/company_scale')}}">企业规模</a></li>
    <li><a href="{{ url('/admin/enterprise/company_scale/create') }}">添加</a></li>
</ul>

<div class="panel panel-default mt20">
    <div class="table-responsive panel-body">
        <table class="table table-hover">
          <thead>
            <tr>
              <th>编号</th>
              <th>规模名称</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
          @foreach($scales as $res)
            <tr id="news_{{ $res->id }}">
              <td>{{ $res->id }}</td>
              <td><a href="{{ url('/admin/enterprise/company_scale/'.$res->id.'/edit') }}">{{ $res->name }} </a></td>
              <td>
                <a href="{{ url('/admin/enterprise/company_scale/'.$res->id.'/edit') }}"><i class="glyphicon glyphicon-edit"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="javascript:void(0);" onclick="delete_one('/admin/enterprise/company_scale/{{$res->id}}','{{$res->id}}','{{ csrf_token() }}')"><i class="glyphicon glyphicon-remove-sign"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
              </td>
            </tr>
          @endforeach
          </tbody>
        </table>
   </div>
</div>
<div>{!! $scales->render() !!} </div>
@endsection
